package cn.sourcespro.service;

import cn.sourcespro.data.dto.SearchUserDto;
import cn.sourcespro.data.entity.User;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * 用户 Service
 *
 * @author zhanghw
 * @date 2018/10/15
 */
public interface UserService {

    User add(User record);

    User update(User record);

    User findById(Integer id);

    User findByUuid(String uuid);

    IPage<User> findAll(SearchUserDto condition);

    int selectCount(SearchUserDto condition);

    int batchInsert(List<User> list);

    List<User> batchQueryByIds(List<Integer> ids);

    List<User> batchQueryByUuids(List<String> uuids);

    int delete(Integer id);

    int delete(String uuid);

    int delete(User record);

    int batchDeleteById(List<Integer> ids);

    int batchDeleteByUuid(List<String> uuids);

}
